package tech.wetech.admin.modules.system.mapper;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tech.wetech.admin.core.utils.MyMapper;
import tech.wetech.admin.modules.system.po.PayCompanyInfo;

import java.util.List;

/**
 * @author lu
 * @description
 * @date 2019年07月02日 17:33
 */
public interface PayCompanyInfoMapper extends MyMapper<PayCompanyInfo> {

  /**
   * 为建行更新sk提供的接口
   *
   * @param companyId
   * @return
   */
  @Select("select  * from pay_company_info where company_id=#{companyId}")
  PayCompanyInfo selectByCompanyId(String companyId);

  @Update("update pay_company_info set pay_json=#{payJson} where id=#{id}")
  boolean updatePayJsonById(Integer id, String payJson);

  @Select("select  * from pay_company_info")
  List<PayCompanyInfo> list();

  @Update("update pay_company_info set remark=#{remark} where id=#{id}")
  boolean updateRemarkByCompanyId(Integer id,String companyId,String remark);



}
